package com.dhcc.sdc.base.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.core.framework.base.entity.BaseEntity;



/**
 * 禁忌症条目匹配规则
 *
 * @ClassName: ContraindicationItemRuleEntity
 * @Description: TODO
 * @author zhangjin
 * @date 2022-09-13 08:51:03
 */
@TableName("t_sdc_base_contraindication_item_rule")
public class ContraindicationItemRuleEntity extends BaseEntity<ContraindicationItemRuleEntity> {
	private static final long serialVersionUID = 1L;

	//规则代码
	private String expCode;
	//规则描述
	private String ruleDesc;
	//备注
	private String ruleMemo;
	//计算类型，如果为时间差，则存放Day、Hour、Minute，字符串比较为String，正常计算则为空
	private String ruleType;
	//数据源1
	private Long dataSource1;
	//数据源2
	private Long dataSource2;
	//取值项目1
	private Long dataSourceItem1;
	//取值项目2
	private Long dataSourceItem2;
	//传参1
	private String param1;
	//传参2
	private String param2;
	//运算1
	private String operator1;
	//运算2
	private String operator2;
	//规则取不到值时，默认返回的结果 0:false 1:true
	private Integer defaultValue;

	@TableField(exist = false)
	private String ruleCal;

	public String getRuleCal() {
		return ruleCal;
	}

	public void setRuleCal(String ruleCal) {
		this.ruleCal = ruleCal;
	}




	/**
	 * 设置：规则代码
	 */
	public void setExpCode(String expCode) {
		this.expCode = expCode;
	}
	/**
	 * 获取：规则代码
	 */
	public String getExpCode() {
		return expCode;
	}
	/**
	 * 设置：规则描述
	 */
	public void setRuleDesc(String ruleDesc) {
		this.ruleDesc = ruleDesc;
	}
	/**
	 * 获取：规则描述
	 */
	public String getRuleDesc() {
		return ruleDesc;
	}
	/**
	 * 设置：备注
	 */
	public void setRuleMemo(String ruleMemo) {
		this.ruleMemo = ruleMemo;
	}
	/**
	 * 获取：备注
	 */
	public String getRuleMemo() {
		return ruleMemo;
	}
	/**
	 * 设置：计算类型，如果为时间差，则存放Day、Hour、Minute，字符串比较为String，正常计算则为空
	 */
	public void setRuleType(String ruleType) {
		this.ruleType = ruleType;
	}
	/**
	 * 获取：计算类型，如果为时间差，则存放Day、Hour、Minute，字符串比较为String，正常计算则为空
	 */
	public String getRuleType() {
		return ruleType;
	}
	/**
	 * 设置：数据源1
	 */
	public void setDataSource1(Long dataSource1) {
		this.dataSource1 = dataSource1;
	}
	/**
	 * 获取：数据源1
	 */
	public Long getDataSource1() {
		return dataSource1;
	}
	/**
	 * 设置： 数据源2
	 */
	public void setDataSource2(Long dataSource2) {
		this.dataSource2 = dataSource2;
	}
	/**
	 * 获取：数据源2
	 */
	public Long getDataSource2() {
		return dataSource2;
	}
	/**
	 * 设置：取值项目1
	 */
	public void setDataSourceItem1(Long dataSourceItem1) {
		this.dataSourceItem1 = dataSourceItem1;
	}
	/**
	 * 获取：取值项目1
	 */
	public Long getDataSourceItem1() {
		return dataSourceItem1;
	}
	/**
	 * 设置：取值项目2
	 */
	public void setDataSourceItem2(Long dataSourceItem2) {
		this.dataSourceItem2 = dataSourceItem2;
	}
	/**
	 * 获取：取值项目2
	 */
	public Long getDataSourceItem2() {
		return dataSourceItem2;
	}
	/**
	 * 设置：传参1
	 */
	public void setParam1(String param1) {
		this.param1 = param1;
	}
	/**
	 * 获取：传参1
	 */
	public String getParam1() {
		return param1;
	}
	/**
	 * 设置：传参2
	 */
	public void setParam2(String param2) {
		this.param2 = param2;
	}
	/**
	 * 获取：传参2
	 */
	public String getParam2() {
		return param2;
	}
	/**
	 * 设置：运算1
	 */
	public void setOperator1(String operator1) {
		this.operator1 = operator1;
	}
	/**
	 * 获取：运算1
	 */
	public String getOperator1() {
		return operator1;
	}
	/**
	 * 设置：运算2
	 */
	public void setOperator2(String operator2) {
		this.operator2 = operator2;
	}
	/**
	 * 获取：运算2
	 */
	public String getOperator2() {
		return operator2;
	}
	/**
	 * 设置：规则取不到值时，默认返回的结果 0:false 1:true
	 */
	public void setDefaultValue(Integer defaultValue) {
		this.defaultValue = defaultValue;
	}
	/**
	 * 获取：规则取不到值时，默认返回的结果 0:false 1:true
	 */
	public Integer getDefaultValue() {
		return defaultValue;
	}
}
